package com.xiaov.math;

public class Matrix4x1 extends Matrix {
	public Matrix4x1() {
		super(4,1);
	}
	public Matrix4x1(float x, float y, float z, float value) {
		super(new float[][]{{x},{y},{z},{value}});
	}
	
	public Matrix4x1(float[][] data) {
		this();
        for (int i = 0; i < M; i++)
            for (int j = 0; j < N; j++)
                    this.data[i][j] = data[i][j];
    }
	
	public Vector3D toVector3D(){
		return new Vector3D((float)get(0,0),(float)get(1,0),(float)get(2,0));
	}
}
